﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using wms.Common;

namespace wms.Pages
{
    /// <summary>
    /// IOTypeSetting.xaml 的交互逻辑
    /// </summary>
    public partial class IOTypeSetting : Page
    {
        public IOTypeSetting()
        {
            ChangeLanguage.changePage(Variable.LanguageSeesion.ToString() );
            InitializeComponent();
        }

        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            this.txt_in_type.Text = Common.Property.Get("type.in");
            this.txt_out_type.Text = Common.Property.Get("type.out");
        }

        private void btn_in_type_Click(object sender, RoutedEventArgs e)
        {
            Common.Property.Save("type.in", this.txt_in_type.Text);
            MessageBox.Show("保存成功");
        }

        private void btn_out_type_Click(object sender, RoutedEventArgs e)
        {
            Common.Property.Save("type.out", this.txt_out_type.Text);
            MessageBox.Show("保存成功");
        }
    }
}
